require 'rake/testtask'

require 'rcov/rcovtask'


task :default => [:test]

desc "run all tests"
Rake::TestTask.new do |t|
  t.test_files = FileList['test/tc*.rb']
  t.verbose=true
end

desc "build coverage"
Rcov::RcovTask.new do |t|
  t.verbose = true
  t.test_files = FileList['test/*.rb']
  t.rcov_opts << '--include-file' << '^lib,^test'
  t.rcov_opts << '--exclude' << '^/home'
end

